{% extends "header.html" %}

{% block title %}Hominin.net | Taxonomy{% endblock %}

{% block content %}
{% if object_list %}
{% regroup object_list|dictsort:"genus" by genus as ordered %}

{% for genus in ordered %}
	<ul>
	{% for item in genus.list %}
		<li><a href="species/{{ item.slug }}"><em>{{ item.genus }} {{ item.species }}</em></a></li>
        {% endfor %}
	</ul>
{% endfor %}
	<p>Number of species: {{ object_list|length }}</p>
{% else %}
	<p>No species are available.</p>
{% endif %}
{% endblock %}
